import { GET } from '@/api/common.js'

const baseApi = '/accounts'

export const getUserInfo = () => {
  return GET({
    url: `${baseApi}/user`,
  })
}

// 获取账户信息
export const getAccountInfo = (params) => {
  return GET({
    url: `${baseApi}`,
    params
  })
}
